You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is in work-in-progress, I still have an error in the browser while trying to render the Hello component when using the AssetMapper:
stimulus.index-S4zNcea.js:7 Error connecting controller
TypeError: Cannot read properties of undefined (reading 'call')
at _n (client-BATiWue.js:7:27775)
at client-BATiWue.js:7:39919
at Hello (Hello-s876KnU.js:8:12)
at svelte.index-TK8_2BG.js:7:28981
at svelte.index-TK8_2BG.js:7:11011
at Ht (svelte.index-TK8_2BG.js:7:24452)
at Kt (svelte.index-TK8_2BG.js:7:25511)
at dt (svelte.index-TK8_2BG.js:7:21898)
at pt (svelte.index-TK8_2BG.js:7:22380)
at svelte.index-TK8_2BG.js:7:11003
Thanks for the PR! Here is the difference in size of the packages dist files between the base branch and the PR.
Please review the changes and make sure they are expected.
hi there, this is one of a kind.. i had a look recently about svelte 5/asset mapper and i ran into the same, so following what i thought i wrote a rollup.config.js (inspired from this repo) on top of this branch to put all the things together
after a while and some distorsions ^^ i managed to render something but it's a big mess at least
anyway i feel this is not the right way things should be done with assetmapper as i got to use a module bundler
there is already a step to compile .svelte files and it's quite unpleasant tho
i could give extra details if it sounds interesting
ok well, i generated a patch to give a try
of course you'll have to npm i && npm run build again (as well as php bin/console assetmap:install if necessary)
then if you go into ./assets/vendor/svelte you see a new file : index-client.js and a bunch of other files like svelte.index.js, internal/client.js which are overridden and the left ones remain unchanged
this particular index-client.js is very tricky because sometimes it throws a 404 and you will have to expose this file into public/ folder using php bin/console asset-map:compile or just copy it, and sometimes (maybe it's symfony cache or something i can't explain --') it works without exposing it
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related to #2288
This is in work-in-progress, I still have an error in the browser while trying to render the
Hellocomponent when using the AssetMapper:I didn't check how it deals with Webpack Encore yet (opened symfony/webpack-encore#1384).